package com.library.framework.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @Package: com.library.framework.config
 * @ClassName: WebSoketConfig
 * @Author: Yin
 * @Date: 14:29
 * @Description: Websocket 配置
 */
@Configuration
public class WebSocketConfig {

    /**
     * 扫描 服务断点注解 注入bean
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }

}
